import request from '@/utils/request'

// 查询维修项目列表
export function listRepairProject(params) {
  return request({
    url: `/system/repairProject/list?pageSize=${params.pageSize}&pageNum=${params.pageNum}`,
    method: 'post',
    data: params
  })
}

// 查询维修大类
export function getLargeCategoryList(query) {
  return request({
    url: '/system/repairProject/getLargeCategoryList',
    method: 'get',
    params: query
  })
}

// 查询维修大类
export function getMediumCategoryList(query) {
  return request({
    url: '/system/repairProject/getMediumCategoryList',
    method: 'get',
    params: query
  })
}
// 查询维修项目详细
export function getRepairProject(id) {
  return request({
    url: '/system/repairProject/' + id,
    method: 'get'
  })
}

// 新增维修项目
export function addRepairProject(data) {
  return request({
    url: '/system/repairProject/add',
    method: 'post',
    data: data
  })
}

// 修改维修项目
export function editRepairProject(data) {
  return request({
    url: '/system/repairProject/edit',
    method: 'post',
    data: data
  })
}

// 删除维修项目
export function delRepairProject(id) {
  return request({
    url: '/system/repairProject/' + id,
    method: 'delete'
  })
}

// 会员等级获取
export function getMemberInfo() {
  return request({
    url: '/system/repairProject/getMemberInfo',
    method: 'get'
  })
}


// 获取树状坞修项目信息
export function getRepairInfo() {
  return request({
    url: "/system/repairProject/getRepairInfo",
    method: "get",
  });
}


export function getChooseList() {
  return request({
    url: "/system/content/chooseList",
    method: "get",
  });
}


export function getChooseListPlus() {
  return request({
    url: "/system/content/chooseList/plus",
    method: "get",
  });
}